<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div class="pageContent">
    <form action="/manage/person/user/doUpdate" method="post"
          onsubmit="return validateCallback(this,dialogAjaxDone);">
        <div class="pageFormContent" layoutH="56">
            <p>
                <label>用户名：</label>
                <input type="text" name="userName" class="required" value="${user.userName}" maxlength="100"/>
                <input type="hidden" name="id" value="${user.id}"/>
            </p>

            <div class="divider"></div>
            <p>
                <label>密码：</label>
                <input type="password" name="passWord" value="" maxlength="100"/>
            </p>

            <div class="divider"></div>
            <p>
                <label>用户分类：</label>
                <select name="userCategory"  class="required">
                    <option value="1" ${user.userCategory eq "1" ?"selected":""}>管理员</option>
                    <option value="2" ${user.userCategory eq "2" ?"selected":""}>运营人员</option>
                </select>
            </p>

            <div class="divider"></div>
            <p>
                <label>姓名：</label>
                <input type="text" name="userFullName" value="${user.userFullName}" maxlength="50"/>
            </p>

            <div class="divider"></div>
            <p>
                <label>邮箱：</label>
                <input type="text" name="email" value="${user.email}" maxlength="100"/>
                <input type="hidden" name="createUser" value="admin" />
            </p>

            <div class="divider"></div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>

